Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <head> <script src="../../ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script> <script> $(document).ready(function(){ $("tr:odd").css("background-color","yellow"); }); </script> </head> <body> <h1>Welcome to My Web Page</h1> <table border="1"> <tr> <th>Company</th> <th>Country</th> </tr> <tr> <td>Alfreds Futterkiste</td> <td>Germany</td> </tr> <tr> <td>Berglunds snabbköp</td> <td>Sweden</td> </tr> <tr> <td>Centro comercial Moctezuma</td> <td>Mexico</td> </tr> <tr> <td>Ernst Handel</td> <td>Austria</td> </tr> <tr> <td>Island Trading</td> <td>UK</td> </tr> </table> </body> <!-- Mirrored from www.w3schools.com/jquery/tryit.asp?filename=tryjquery_sel_odd by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 07:37:33 GMT --> </html>
Result:
Try it Yourself - © w3schools.com